Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Some LotusScript

I haven't tested it, but I think this is in the ballpark..


Sub click
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim col As NotesViewColumn
Dim formNameIn As String
Dim viewNameIn As string
Dim fieldCount As Integer
Dim msgString As String

Set db = session.CurrentDatabase
formNameIn = LCase(InputBox("Name of form?"))
viewNameIn = LCase(InputBox("Name of view?"))
Set view = db.createview(viewNameIn,"Form="+formNameIn)
ForAll form In db.Forms
If LCase(form.Name) = formNameIn Then
If IsEmpty(form.Fields) Then
MessageBox form.Name & " has no fields"
Else
fieldCount = 0
msgString = ""
ForAll Field In form.Fields
fieldCount = fieldCount + 1
Set col = view.createcolumn(fieldCount,Field,Field)
End ForAll
End If
Exit Sub
End If
End ForAll
MessageBox "The form """ & formNameIn & """ does not exist"
End sub


Feedback response number WEBB9KZNKH created by ~Fritz Oprekonyettu on 06/12/2014

Easily add multiple fields to a vie... (~Yoshi Zenreber... 12.Jun.14)
. . Some LotusScript (~Fritz Oprekony... 12.Jun.14)
. . This one I've tested (~Fritz Oprekony... 12.Jun.14)
. . . . Awesome... (~Yoshi Zenreber... 13.Jun.14)
. . . . Seems to skip fields (~Yoshi Zenreber... 16.Jun.14)
. . . . . . Limitations to this approach (~Fritz Oprekony... 26.Jun.14)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS